<template>
  <view class="container">
		<nav-ber :title="'新建调研任务'" :bgColor="'#f7f8ff'"></nav-ber>
		<view class="province">
			<uFrom ref="getFrom" :itemList="itemList" :itemKeys.sync="itemKeys"></uFrom>
			<view class="bus_flex">
				<view>
					品种：自研
				</view>
				<view>
					调研人：医生
				</view>
				<view class="button_ov">
					<u-button @click="addDoctorFun('/pages/mytaskManagement/researchDoctor/index')" type="primary" text="新建任务"></u-button>
				</view>
			</view>
			<view class="bus_flex">
				<view>
					品种：自研
				</view>
				<view>
					调研人：患者
				</view>
				<view class="button_ov">
					<u-button @click="addDoctorFun('/pages/mytaskManagement/researchPatients/index')" type="primary" text="新建任务"></u-button>
				</view>
			</view>
			<view class="bus_flex">
				<view>
					品种：竞品
				</view>
				<view>
					调研人：医生
				</view>
				<view class="button_ov">
					<u-button @click="addDoctorFun('/pages/mytaskManagement/competingDoctor/index')" type="primary" text="新建任务"></u-button>
				</view>
			</view>
			<view class="bus_flex">
				<view>
					品种：竞品
				</view>
				<view>
					调研人：患者
				</view>
				<view class="button_ov">
					<u-button @click="addDoctorFun('/pages/mytaskManagement/competingPatients/index')" type="primary" text="新建任务"></u-button>
				</view>
			</view>
		</view>
  </view>
</template>
<script>
	import { itemList } from './items.js'
  export default {
    data() {
			return {
				show: true,
				keyword: '',
				ispro: '1',
				list: ['进行中', '已完成'],
				current: 0,
				itemList: itemList,
				itemKeys: {
					titles: '',
					sel: '',
					steawwer: '',
				}
			}
    },
		methods: {
			proFun(val) {
				this.ispro = val
			},
			sectionChange(index) {
				this.current = index;
			},
			addDoctorFun(url) {
				uni.navigateTo({
					url
				})
			},
		},
		mounted() {},
  }
</script>
<style lang="scss" scoped>
	.sea_pad {
		padding: 0 30rpx;
		box-sizing: border-box;
	}
	.container {
		background-color: #f7f8ff;
		// background-color: #fff;
		display: flex;
		flex-direction: column;
		height: 100vh;
		overflow: hidden;
	}
	.province {
		flex: 1;
		overflow: scroll;
		padding: 0 20rpx;
		margin-top: 20rpx;
		padding: 0 40rpx;
		box-sizing: border-box;
	}
	.button_str {
		width: 80%;
		margin: auto;
		text-align: center;
		border-radius: 100rpx;
		padding: 20rpx 10rpx;
		background-color: rgb(3, 121, 255);
		color: #fff;
		box-sizing: border-box;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
	}
	.bus_flex {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 20rpx 0;
		padding: 10rpx 0;
		box-sizing: border-box;
		border-bottom: 1px solid rgb(214, 215, 217);
	}
	.button_ov {
		border-radius: 100rpx;
		overflow: hidden;
	}
</style>
